package com.finalab.website.model;


import org.hibernate.validator.constraints.Length;
import java.util.Date;

public class Project {
    private Integer proId;
    @Length(max = 30)
    private String proName;
    @Length(max = 300)
    private String proBrief;
    @Length(max = 300)
    private String proPrice;
    private Integer proPicture;
//    @Pattern(regexp = "^[0-9]{4}\\-[0-9]{2}\\-[0-9]{2}")
    private Date proTime;


    public Project() {
    }

    public Project(Integer proId, @Length(max = 30) String proName, @Length(max = 300) String proBrief, @Length(max = 300) String proPrice, Integer proPicture, Date proTime) {
        this.proId = proId;
        this.proName = proName;
        this.proBrief = proBrief;
        this.proPrice = proPrice;
        this.proPicture = proPicture;
        this.proTime = proTime;
    }

    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProBrief() {
        return proBrief;
    }

    public void setProBrief(String proBrief) {
        this.proBrief = proBrief;
    }

    public String getProPrice() {
        return proPrice;
    }

    public void setProPrice(String proPrice) {
        this.proPrice = proPrice;
    }

    public Integer getProPicture() {
        return proPicture;
    }

    public void setProPicture(Integer proPicture) {
        this.proPicture = proPicture;
    }

    public Date getProTime() {
        return proTime;
    }

    public void setProTime(Date proTime) {
        this.proTime = proTime;
    }
}